package com.jk.hly.demo.controller;

import org.junit.Test;

public class ThearController {

    long   in=400000000L; // 1132  729  735  920  860
      @Test
    public  void   test01(){
       long start = System.currentTimeMillis();

          new Thread(new Runnable() {
              @Override
              public void run() {

                  while (in>0){
                      in--;
                  }

              }
          }).start();


       while (in>0){
           in--;
       }

        long end = System.currentTimeMillis();

        System.out.println((end-start)+"  ======>"+in);
    }
}
